Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nada/feat: set up translation #55

Merged
merged 7 commits into from
May 8, 2024
Merged

nada/feat: set up translation #55

merged 7 commits into from
May 8, 2024

Conversation

nada-deriv
Copy link
Contributor

No description provided.

Comment on lines 18 to 25
PROJECT_NAME: ${{ env.VITE_PROJECT_NAME }}
CROWDIN_BRANCH_NAME: ${{ env.VITE_CROWDIN_BRANCH_NAME }}
CROWDIN_PROJECT_ID: ${{ env.VITE_CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ env.VITE_CROWDIN_PERSONAL_TOKEN }}
R2_ACCOUNT_ID: ${{ env.VITE_R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ env.VITE_R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ env.VITE_R2_SECRET_ACCESS_KEY }}
R2_BUCKET_NAME: ${{ env.VITE_R2_BUCKET_NAME }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PROJECT_NAME: ${{ env.VITE_PROJECT_NAME }}
CROWDIN_BRANCH_NAME: ${{ env.VITE_CROWDIN_BRANCH_NAME }}
CROWDIN_PROJECT_ID: ${{ env.VITE_CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ env.VITE_CROWDIN_PERSONAL_TOKEN }}
R2_ACCOUNT_ID: ${{ env.VITE_R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ env.VITE_R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ env.VITE_R2_SECRET_ACCESS_KEY }}
R2_BUCKET_NAME: ${{ env.VITE_R2_BUCKET_NAME }}
PROJECT_NAME: ${{ env.VITE_PROJECT_NAME }}
CROWDIN_BRANCH_NAME: ${{ env.VITE_CROWDIN_BRANCH_NAME }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }}

@nada-deriv we should add the prefix with only PROJECT_NAME and CROWDIN_BRANCH_NAME here, since only these 2 needs to be accessible in frontend and are not sensitive information, apart from these 2 variables all of them should be in secrets and without the VITE_ prefix since we don't need to access those in our frontend app

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh.. k.. got it

src/App.tsx Outdated
import AppContent from './routes/AppContent';

const i18nInstance = initializeI18n({
cdnUrl: `https://pub-5ce11fcb15f34c0a9ce8ba7086d16e6a.r2.dev/${process.env.VITE_CROWDIN_PROJECT_ID}/${process.env.VITE_CROWDIN_BRANCH_NAME}`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cdnUrl: `https://pub-5ce11fcb15f34c0a9ce8ba7086d16e6a.r2.dev/${process.env.VITE_CROWDIN_PROJECT_ID}/${process.env.VITE_CROWDIN_BRANCH_NAME}`,
cdnUrl: `https://pub-5ce11fcb15f34c0a9ce8ba7086d16e6a.r2.dev/${process.env.VITE_PROJECT_NAME}/${process.env.VITE_CROWDIN_BRANCH_NAME}`,

Copy link

@amir-deriv amir-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

on:
push:
branches:
- 'main'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 'main'
- 'master'

Copy link

github-actions bot commented May 8, 2024

Preview Link: https://nada-translation.deriv-p2p.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@farrah-deriv farrah-deriv merged commit 925a992 into deriv-com:master May 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants